package com.hdwe.icpms.admin.domain.bo;

import com.hdwe.icpms.admin.domain.Protocol;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 设备协议业务对象 cpc_protocol
 *
 * @author Lus
 * @date 2024-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Protocol.class, reverseConvertGenerate = false)
public class ProtocolBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 协议名称
     */
    @NotBlank(message = "协议名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 协议头
     */
    @NotBlank(message = "协议头不能为空", groups = { AddGroup.class, EditGroup.class })
    private String header;

    /**
     * 功能码
     */
    @NotBlank(message = "功能码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String functionCode;

    /**
     * 协议版本号
     */
    private String version;

    /**
     * 故障代码
     */
    private String faultCode;

    /**
     * 状态
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
